package com.zhfi.dataapply.service.impl;

import com.zhfi.dataapply.entity.job.JobSetting;
import com.zhfi.dataapply.mapper.common.JobSettingMapper;
import com.zhfi.dataapply.service.JobSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobSettingServiceImpl implements JobSettingService {

    @Autowired
    private JobSettingMapper jobSettingMapper;

    @Override
    public List<JobSetting> getJobSettings() {
        return jobSettingMapper.getJobSetterList();
    }

    @Override
    public int finished(String jobName) {
        return jobSettingMapper.finished(jobName);
    }

    @Override
    public int running(String jobName) {
        return jobSettingMapper.running(jobName);
    }

    @Override
    public int failed(String jobName) {
        return jobSettingMapper.finished(jobName);
    }

}
